package com.lzy.cloud.base.service;

import com.github.pagehelper.PageInfo;
import com.lzy.cloud.base.dto.ShopProtocolDto;
import com.lzy.framework.core.orm.db.Pager;

/**
 * 商家协议关联
 *
 * @author lc
 * @version 2018/8/17
 */
public interface ShopProtocolService {

    /**
     * 增
     * @param dto
     * @return
     */
    Long create(ShopProtocolDto dto);

    /**
     * 分页查询
     * @param pager
     * @param map
     * @return
     */
    PageInfo<ShopProtocolDto> selectList(Pager pager, ShopProtocolDto map);

    /**
     * 编辑
     * @param map
     * @return
     */
    Boolean update(ShopProtocolDto map);

    /**
     * 根据shopId删除
     * @param shopId
     * @return
     */
    Boolean deleteByShopId(Long shopId);
}
